package com.ljc.cjgl.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.ljc.cjgl.entitiy.Marking;
@Repository
public interface MarkingResitory extends JpaRepository<Marking, Integer>, JpaSpecificationExecutor<Marking> {

	public List<Marking> findByTestId(Integer id);

	public List<Marking> findByTestStatusLessThan(Integer n);

	public List<Marking> findByTeacherId(Integer teacherId);

	public List<Integer> findDistinctTeacherIdByTestIdAndRateNotNull(Integer testId);

	public List<Marking> findByTestIdAndRateNotNull(Integer testId);

	public List<Marking> findByTestIdAndRateIsNull(Integer testId);


}
